<template>
    <button class="umrp-switch" type="button">
        <div class="umrp-switch-dot"></div>
    </button>
</template>

<style lang="scss" scoped>
.umrp-switch {
    position: relative;
    background-color: #165dff;
    height: 24px;
    line-height: 24px;
    min-width: 40px;
    outline: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    &-dot {
        position: absolute;
        display: flex;
        top: 4px;
        left: calc(100% - 20px);
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        background-color: #fff;
        border-radius: 50%;
    }
}
</style>